﻿package net.wangit.user.admin;

import net.wangit.framework.cache.Cache;
import net.wangit.framework.util.CacheUtil;

public class AdminCache {

	public AdminCache() {
	}

	public static Admin get(String aid) {
		return (Admin) getCache().get(aid);
	}

	public static void put(String aid, Admin administrator) {
		getCache().put(aid, administrator);
	}

	public static void clear(String aid) {
		getCache().clear(aid);
	}

	public static void clearAll() {
		getCache().clearAll();
	}

	private static Cache getCache() {
		return CacheUtil.getAdministratorCache();
	}
}
